import { SlotRenders } from './types'

export function initSlots(slots: SlotRenders) {
  const result: any = {}
  for (const key of Object.keys(slots)) {
    result[key] = (...args: any) => {
      return slots[key](...args)
    }
  }
  return result
}
